package com.gitee.deament.GenEntity;

import com.gitee.deament.tianyancha.core.gencode.GenDTO;
import com.gitee.deament.tianyancha.core.gencode.GenEntity;
import com.gitee.deament.tianyancha.core.gencode.GenRequest;
import com.gitee.deament.tianyancha.core.gencode.GenRequestImpl;

public class GenEntityTest2 {

    public static void main(String[] args) {
        System.out.println("aaadataList(type=14)"
                .replaceAll("\\(", "")
                .replaceAll("\\.", "")
                .replaceAll("\\)", "")
                .replaceAll("=", ""));
        String id = "1040";
        String url = "https://open.tianyancha.com/cloud-open-admin/_feign/interface/find.json?parentId=" + id + "&opened=1&pn=1&ps=50";
        System.out.println(url);
        //  gen(url);
        for (int i = 1; i <= 31; i++) {
            System.out.println("case " + i + ":" +
                    "                    vo.getResult().setDataListtype" + i + "(dataList.toJavaList(RiskDetailDataListtype" + i + ".class));" +
                    "                    break;");
        }


    }

    private static void gen(String url) {
        GenEntity.gen(url);
        GenDTO.gen(url);
        GenRequest.gen(url);
        GenRequestImpl.gen(url);
    }
}
